




<% if logged_in? %>
<h4 class="sets"><%= current_user.display_name %>&#39;s FLASHCARD SETS</h4>
<%= link_to '', new_fset_path, {:class => "newset"} %><br /><br />
	<table class="fsets_grid">


  	<% for fset in @my_fsets %>
  	<tr>
    	<td><%=h fset.name %></td>
    	<td><%= link_to '', fset, { :class => "show" } %></td>
    	<td><%= link_to '', edit_fset_path(fset), { :class => "edit" } %></td>
    	<td><%= link_to '', fset, :class => "delete", :confirm => 'Are you sure?', :method => :delete %></td>
    	<td><%= link_to '', fplay_fset_url(fset), { :class => "play" } %></td>
  	</tr>
  	<% end %>
</table>

<% end %>

<h4 class="sets">OTHER PEOPLE&#39;S SETS YOU CAN PLAY</h4>
<table class="fsets_grid">
<% for fset in @all_fsets %>
  <tr>
    <td><%=h fset.name %> by <%=h fset.user.login %></td>

    <td><%= link_to '', fset, { :class => "show" } %></td>
    <td><%= link_to '', new_fset_game_url(fset), { :class => "play" } %></td>
  </tr>
<% end %>
</table>


